package com.pm.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pm.business.mapper.CompeteEnterpriseMapper;
import com.pm.business.domain.CompeteEnterprise;
import com.pm.business.service.ICompeteEnterpriseService;

/**
 * 基本信息Service业务层处理
 * 
 * @author zxl
 * @date 2022-05-07
 */
@Service
public class CompeteEnterpriseServiceImpl implements ICompeteEnterpriseService 
{
    @Autowired
    private CompeteEnterpriseMapper competeEnterpriseMapper;

    /**
     * 查询基本信息
     * 
     * @param enterpriseId 基本信息主键
     * @return 基本信息
     */
    @Override
    public CompeteEnterprise selectCompeteEnterpriseByEnterpriseId(Long enterpriseId)
    {
        return competeEnterpriseMapper.selectCompeteEnterpriseByEnterpriseId(enterpriseId);
    }

    /**
     * 查询基本信息列表
     * 
     * @param competeEnterprise 基本信息
     * @return 基本信息
     */
    @Override
    public List<CompeteEnterprise> selectCompeteEnterpriseList(CompeteEnterprise competeEnterprise)
    {
        return competeEnterpriseMapper.selectCompeteEnterpriseList(competeEnterprise);
    }

    /**
     * 新增基本信息
     * 
     * @param competeEnterprise 基本信息
     * @return 结果
     */
    @Override
    public int insertCompeteEnterprise(CompeteEnterprise competeEnterprise)
    {
        return competeEnterpriseMapper.insertCompeteEnterprise(competeEnterprise);
    }

    /**
     * 修改基本信息
     * 
     * @param competeEnterprise 基本信息
     * @return 结果
     */
    @Override
    public int updateCompeteEnterprise(CompeteEnterprise competeEnterprise)
    {
        return competeEnterpriseMapper.updateCompeteEnterprise(competeEnterprise);
    }

    /**
     * 批量删除基本信息
     * 
     * @param enterpriseIds 需要删除的基本信息主键
     * @return 结果
     */
    @Override
    public int deleteCompeteEnterpriseByEnterpriseIds(Long[] enterpriseIds)
    {
        return competeEnterpriseMapper.deleteCompeteEnterpriseByEnterpriseIds(enterpriseIds);
    }

    /**
     * 删除基本信息信息
     * 
     * @param enterpriseId 基本信息主键
     * @return 结果
     */
    @Override
    public int deleteCompeteEnterpriseByEnterpriseId(Long enterpriseId)
    {
        return competeEnterpriseMapper.deleteCompeteEnterpriseByEnterpriseId(enterpriseId);
    }
}
